//
//  DeviceInfo.h
//  IPTV
//
//  Created by Echo on 13-12-5.
//  Copyright (c) 2013年 游强. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "NSDataInfo.h"

//设备信息，比如空调，电视设备  keyArray里面存的是设备按钮信息

typedef enum {
	DEVICE_TV = 0,//电视
	DEVICE_AIR,//空调
    DEVICE_STB,//机顶盒
    DEVICE_SOUND,//音响
    DEVICE_CUSTOM,//自定义
    DEVICE_DISH,//dish
    DEVICE_XIAOMI,//小米盒子
    DEVICE_APPLETV,//APPLETV
    DEVICE_SOCKET1,//插座1
    DEVICE_SOCKET2,//插座2
    DEVICE_SOCKET3,//插座3
} DEVICE_TYPE;
@interface DeviceInfo : NSObject{
    NSMutableArray *keyArray;//保存设备按键信息
    DEVICE_TYPE type;//设备类型
    NSString *name, *fileid;//设备名称，设备图片id
    int position;
}
@property(nonatomic, assign)DEVICE_TYPE type;
@property(nonatomic, strong)NSString *name,  *fileid;
@property(nonatomic, strong)NSMutableArray *keyArray;
@property(nonatomic, assign)int position;

- (id)initWithType:(DEVICE_TYPE)atype name:(NSString*)aname fileid:(NSString*)fileid;
@end
